package com.atguigu.gulimall.seckill.time;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

public class test {
    public static void main(String[] args) throws ParseException {
        String date="2023-01-29 18:00:00";
        SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        Long dates = simpleDateFormat.parse(date).getTime();
        System.out.println(dates);
    }
}
